package com.ytjj.qmyx.mall.service;

import org.springframework.data.elasticsearch.core.query.SearchQuery;

import java.util.List;

/**
 *
 * @version 1.0
 * 
 */
public interface EsService {

    /**
     * 查询
     * @param activityRecommendQuery
     * @param clazz
     * @param <T>
     * @return
     */
    <T> List<T> query(SearchQuery activityRecommendQuery,Class<T> clazz);

    /**
     * 统计数量
     * @param activityRecommendQuery
     * @return
     */
    Long count(SearchQuery activityRecommendQuery);
}
